package com.hnas.account.orm;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hnas.core.orm.BaseEntity;

/**
 * 账户信息
 * @author zhd.yu
 *
 */
@Entity
@Table(name = "tbl_accinfo")
public class Account extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -251540585867663203L;
	@Id
	@Column(name = "id")
	private String id;//账户id
	@Column(name = "merge_acc_id")
	private String mergeAccId;//合并账户id
	@Column(name = "emp_id")
	private String empId;//员工编号
	@Column(name = "nick_name")
	private String nickName;//昵称
	@Column(name = "head_photo")
	private String headPhoto;//头像
	@Column(name = "count")
	private Long count;//登录总数
	@Column(name = "last_login_time")
	private String lastLoginTime;//最后登录时间
	@Column(name = "last_login_ip")
	private String lastLoginIP;//最后登录IP
	@Column(name = "imei")
	private String imei;//登录设备号
	@Column(name = "phone_type")
	private String phoneType;//手机类型 如华为手机、魅族手机
	@Column(name = "username")
	private String userName;//域账号
	@Column(name = "password")
	private String password;//密码
	@Column(name = "phone_no")
	private String phoneNo;//手机号
	@Column(name = "open_id")
	private String openId;//微信公众号唯一标识
	@Column(name = "app_type")
	private String appType;//应用类型：1、微信虚拟卡应用 2、海贝APP应用
	@Column(name = "login_type")
	private String loginType;//登录类型   0-用户名登录   1-手机验证码登录   2-第三方登录
	@Column(name = "thdid")
	private String thdid;//第三方唯一标识
	@Column(name = "thd_type")
	private String thdType;//第三方类型
	@Column(name = "app_id")
	private String appId;//应用id
	@Column(name = "valid")
	private String valid;//是否有效 0无效 1有效
	@Column(name = "app_token_valid_end_time")
	private String appTokenValidEndTime;//海贝APP token有效截止时间
	@Column(name = "app_token")
	private String appToken;//海贝APP token
	@Column(name = "wx_token")
	private String wxToken;//微信token 
	@Column(name = "wx_token_valid_end_time")
	private String wxTokenValidEndTime;//微信token 有效截止时间
	@Column(name = "acc_name")
	private String accName;
	
	
	public String getAccName() {
		return accName;
	}
	public void setAccName(String accName) {
		this.accName = accName;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getMergeAccId() {
		return mergeAccId;
	}
	public void setMergeAccId(String mergeAccId) {
		this.mergeAccId = mergeAccId;
	}
	public String getEmpId() {
		return empId;
	}
	public void setEmpId(String empId) {
		this.empId = empId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getHeadPhoto() {
		return headPhoto;
	}
	public void setHeadPhoto(String headPhoto) {
		this.headPhoto = headPhoto;
	}
	public Long getCount() {
		return count;
	}
	public void setCount(Long count) {
		this.count = count;
	}
	public String getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public String getLastLoginIP() {
		return lastLoginIP;
	}
	public void setLastLoginIP(String lastLoginIP) {
		this.lastLoginIP = lastLoginIP;
	}
	public String getImei() {
		return imei;
	}
	public void setImei(String imei) {
		this.imei = imei;
	}
	public String getPhoneType() {
		return phoneType;
	}
	public void setPhoneType(String phoneType) {
		this.phoneType = phoneType;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getAppType() {
		return appType;
	}
	public void setAppType(String appType) {
		this.appType = appType;
	}
	public String getLoginType() {
		return loginType;
	}
	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
	public String getThdid() {
		return thdid;
	}
	public void setThdid(String thdid) {
		this.thdid = thdid;
	}
	public String getThdType() {
		return thdType;
	}
	public void setThdType(String thdType) {
		this.thdType = thdType;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getValid() {
		return valid;
	}
	public void setValid(String valid) {
		this.valid = valid;
	}
	public String getAppTokenValidEndTime() {
		return appTokenValidEndTime;
	}
	public void setAppTokenValidEndTime(String appTokenValidEndTime) {
		this.appTokenValidEndTime = appTokenValidEndTime;
	}
	public String getAppToken() {
		return appToken;
	}
	public void setAppToken(String appToken) {
		this.appToken = appToken;
	}
	public String getWxToken() {
		return wxToken;
	}
	public void setWxToken(String wxToken) {
		this.wxToken = wxToken;
	}
	public String getWxTokenValidEndTime() {
		return wxTokenValidEndTime;
	}
	public void setWxTokenValidEndTime(String wxTokenValidEndTime) {
		this.wxTokenValidEndTime = wxTokenValidEndTime;
	}
	
}
